package cn.iocoder.yudao.module.hs.controller.admin.tray.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 托盘信息新增/修改 Request VO")
@Data
public class TraySaveReqVO {

    @Schema(description = "托盘主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "3994")
    private Long id;

    @Schema(description = "托盘编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "托盘编码不能为空")
    private String code;

    @Schema(description = "RFID编码", requiredMode = Schema.RequiredMode.REQUIRED)
    private String rfidCode;

    @Schema(description = "所在仓库", requiredMode = Schema.RequiredMode.REQUIRED, example = "24664")
    private Long warehouseId;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private Integer status;

    @Schema(description = "入库时间")
    private LocalDateTime warehousingTime;

    @Schema(description = "部门ID")
    private Long deptId;
}